package com.yes_iot.service.impl;

import com.yes_iot.dao.LargeScreenMoudleDao;
import com.yes_iot.dao.VisualMoudleDao;
import com.yes_iot.entity.LargeScreenMoudle;
import com.yes_iot.entity.VisualMoudle;
import com.yes_iot.service.LargeScreenMoudleService;
import com.yes_iot.service.VisualMoudleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Optional;
import java.util.UUID;

@Service
public class LargeScreenMoudleServiceImpl extends AbstractEntityService implements LargeScreenMoudleService {
    @Autowired
    private LargeScreenMoudleDao largeScreenMoudleDao;

    @Override
    public LargeScreenMoudle save(LargeScreenMoudle largeScreenMoudle) {
        return largeScreenMoudleDao.save(largeScreenMoudle);
    }

    @Override
    public void deleteById(String id) {
        largeScreenMoudleDao.deleteById(UUID.fromString(id));
    }

    @Override
    public List<LargeScreenMoudle> findByLargeScreenConfigurationId(UUID largeScreenConfigurationId) {
        return largeScreenMoudleDao.findByLargeScreenConfigurationId(largeScreenConfigurationId);
    }

}
